package com.ryskoo.catering.productattr.repository;

import com.ryskoo.catering.productattr.domain.ProductAttrPO;
import com.ryskoo.framework.core.repository.IBasicRepository;

import java.util.List;

public interface IProductAttrRepository extends IBasicRepository<ProductAttrPO> {
    /**
     * 根据商品主信息uuid查询属性uuid
     * @param mainUUid
     */
    public List<String> getUuidsByMainUuid(String mainUUid);
    /**
     * 根据商品id查询属性集合
     * @param mainUuid
     * @return
     */
    public List<ProductAttrPO> getAttrsByMainUuid(String mainUuid);

    /**
     * 根据商品主信息uuids查询属性uuids
     * @param mainUuids
     * @return
     */
    public List<String> getUuidsByMainUuids(List<String> mainUuids);
}
